import Login from '../pages/login';
import Register from '../pages/register';
import Auth from '../pages/auth';
import Dashboard from '../pages/auth/dashboard';
import TeacherIndex from '../pages/auth/teacher-index';
import StudentIndex from '../pages/auth/student-index';
import StudentManage from '../pages/auth/student-manage';
import ScoreManage from '../pages/auth/score-manage';
import Mine from '../pages/auth/mine';

const routes = [
    {
        path: '/login',
        component: Login,
        noLogin: true,
    },
    {
        path: '/register',
        component: Register,
        noLogin: true,
    },
    {
        path: '/',
        component: Auth,
        routes: [
            {
                path: '/dashboard',
                component: Dashboard,
            },
            {
                path: '/teacher/index',
                component: TeacherIndex,
            },
            {
                path: '/student/index',
                component: StudentIndex,
            },
            {
                path: '/student/manage',
                component: StudentManage,
            },
            {
                path: '/score/manage',
                component: ScoreManage,
            },
            {
                path: '/mine',
                component: Mine,
            },
        ],
    },
];

/**
 * /teacher/index
 * /student/index
 * /student/manage
 * /score/manage
 * /mine
 */

// const routes = [
//     {
//         path: '路由路径',
//         component: '路由组件',
//         routes: [
//             {
//                 path: '路由路径',
//                 component: '路由组件',
//             },
//         ],
//     },
// ];

export default routes;
